home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / ScaleP.h.z / ScaleP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.6 KB  |  146 lines

  1. /*
  2.  * ScaleP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: ScaleP.h /main/cde1_maint/2 1995/08/18 19:19:57 drk $ */
  36. /*
  37. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. #ifndef _XmScaleP_h
  41. #define _XmScaleP_h
  42.  
  43.  
  44. #include <Xm/Scale.h>
  45. #include <Xm/ManagerP.h>
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. /* Constraint part record for Scale widget */
  52.  
  53. typedef struct _XmScaleConstraintPart
  54. {
  55.    char unused;
  56. } XmScaleConstraintPart, * XmScaleConstraint;
  57.  
  58.  
  59. /*  New fields for the Scale widget class record  */
  60.  
  61. typedef struct
  62. {
  63.    XtPointer extension;   /* Pointer to extension record */
  64. } XmScaleClassPart;
  65.  
  66.  
  67. /* Full class record declaration */
  68.  
  69. typedef struct _XmScaleClassRec
  70. {
  71.    CoreClassPart       core_class;
  72.    CompositeClassPart  composite_class;
  73.    ConstraintClassPart constraint_class;
  74.    XmManagerClassPart  manager_class;
  75.    XmScaleClassPart    scale_class;
  76. } XmScaleClassRec;
  77.  
  78. externalref XmScaleClassRec xmScaleClassRec;
  79.  
  80.  
  81. /* New fields for the Scale widget record */
  82.  
  83. typedef struct
  84. {
  85.    int            value;
  86.    int            maximum;
  87.    int            minimum;
  88.    unsigned char  orientation;
  89.    unsigned char  processing_direction;
  90.    XmString       title; 
  91.    XmFontList     font_list;
  92.    XFontStruct  * font_struct;
  93.    Boolean        show_value;
  94.    short          decimal_points;
  95.    Dimension      scale_width;
  96.    Dimension      scale_height;
  97.    Dimension      highlight_thickness;
  98.    Boolean        highlight_on_enter;
  99.    XtCallbackList drag_callback;
  100.    XtCallbackList value_changed_callback;
  101.  
  102.    int last_value;
  103.    int slider_size;
  104.    GC  foreground_GC;
  105.    int show_value_x;
  106.    int show_value_y;
  107.    int show_value_width;
  108.    int show_value_height;
  109.    int scale_multiple;
  110. } XmScalePart;
  111.  
  112.  
  113. /****************************************************************
  114.  *
  115.  * Full instance record declaration
  116.  *
  117.  ****************************************************************/
  118.  
  119. typedef struct _XmScaleRec
  120. {
  121.     CorePart       core;
  122.     CompositePart  composite;
  123.     ConstraintPart constraint;
  124.     XmManagerPart  manager;
  125.     XmScalePart    scale;
  126. } XmScaleRec;
  127.  
  128.  
  129. /********    Private Function Declarations    ********/
  130. #ifdef _NO_PROTO
  131.  
  132.  
  133. #else
  134.  
  135.  
  136. #endif /* _NO_PROTO */
  137. /********    End Private Function Declarations    ********/
  138.  
  139.  
  140. #ifdef __cplusplus
  141. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  142. #endif
  143.  
  144. #endif /* _XmScaleP_h */
  145. /* DON'T ADD ANYTHING AFTER THIS #endif */
  146.